package me.firstapp.repository.bbs;

import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.bbs.Advertisement;
import me.firstapp.repository.base.EntityRepository;

public interface AdvertisementRepository extends EntityRepository<Advertisement> {

	List<Advertisement> findAvailableAds(Long apiClientId);
	
	Page<Advertisement> findAdvertisementPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams, String sortParam,
			String sortType, Long apiClientId);
	
	Advertisement findById(Long id, Long apiClientId);
	
}
